# for x in range(1, 10):
#     for y in range(1, 10):
#         if x >= y:
#             print("{1} * {0} = {2}".format(x, y, x * y), end="\t")
#         else:
#             print("", end="\t")
#     print()

for x in range(1, 10):
    for y in range(1, x + 1):
        print("{1} * {0} = {2}".format(x, y, x * y), end="\t")
    print()
